package top.maof.book.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("web")
@ApiModel("网站")
public class Web implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("目录的抓取策略")
    private String contentsSelect;

    @ApiModelProperty("章节标题抓取策略")
    private String chapterTitleSelect;

    private String chapterContentSelect;

    private String chapterNextSelect;

    private String chapterPreviousSelect;

    private String site;

    private String url;

    private String charset;

    @TableField(fill = FieldFill.INSERT)
    private Long insertTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

}
